package com.caifu.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 缴费详细记录表
 * </p>
 *
 * @author GZ
 * @since 2020-11-30
 */
@Data
public class YlPaymentDetailRecord extends Model<YlPaymentDetailRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID(缴费详细记录表)
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 支付记录id
     */
    @TableField("RECORD_ID")
    private Integer recordId;

    /**
     * 关联月账单id
     */
    @TableField("MONTH_BILL_ID")
    private Integer monthBillId;

    /**
     * 缴费金额
     */
    @TableField("PAY_AMT")
    private BigDecimal payAmt;

    /**
     * 缴费日期
     */
    @TableField("PAY_DAY")
    private String payDay;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private String createTime;

    /**
     * 管理员编号
     */
    @TableField("TELLER_NO")
    private String tellerNo;

    /**
     * 状态 1:正常
     */
    @TableField("STATUS")
    private String status;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "YlPaymentDetailRecord{" +
        "id=" + id +
        ", recordId=" + recordId +
        ", monthBillId=" + monthBillId +
        ", payAmt=" + payAmt +
        ", payDay=" + payDay +
        ", createTime=" + createTime +
        ", tellerNo=" + tellerNo +
        ", status=" + status +
        "}";
    }
}
